Shader "Level4/Misc/Mask" {
	Properties {
		_MainTex ("Base (RGB)", 2D) = "white" {}
		_Mask("Mask",2D) = "white"{}
	}
	
	SubShader {
		Tags { "RenderType"="Transparent" "Queue"="Transparent" }
		LOD 200
		Lighting On
		ZWrite Off
		Blend SrcAlpha OneMinusSrcAlpha
		
		Pass{
			//使用 _Mask的rgba
			SetTexture[_Mask]{combine texture}
			//使用_MainTex的rgb,使用_Mask的a
			SetTexture[_MainTex]{combine texture,previous}
		}
		
	}
}
